<meta meta="抢购配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">抢购锁定天数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" name="userBuyLockedDays" placeholder="用户抢购后，几天内不能再次抢购！"
                   s-valid-error="require(),min(0)"/>
            <div class="help-block">用户抢购后，几天内不能再次抢购！</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">最多未完成的抢购数量</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="最多未完成的抢购数量，超过该值后，用户不可再次抢购" name="userRushBuyLimitNum"
                   s-valid-error="require(),min(0)"/>
            <div class="help-block">最多未完成的抢购数量，超过该值后，用户不可再次抢购</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">自动返现超时天数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="超过该天数时卖家没有处理，将会自动进行返现" name="autoRebateTimeoutDays"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">待审核订单自动审核天数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="超过该天数时的待审核订单，将被自动审核通过" name="waitVerifyTimeoutDays"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">审核失败订单自动处理天数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="超过该天数时的审核失败订单将会被自动释放掉" name="verifyFailTimeoutDays"
                   s-valid-error="require(),min(0)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">订单超时释放分钟数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="0" class="form-control" placeholder="超过该天数时卖家没有处理，将会自动进行返现" name="orderHoldTimeoutMinutes"
                   s-valid-error="require(),min(0)"/>
            <div class="help-block">超过该分钟数的订单如果没有填写单号，将会被自动取消，并释放抢购资格</div>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>